package com.gem.day06.extend1;

import java.time.LocalDate;

/**
 * 测试类
 */
public class TestEmployee {
	public static void main(String[] args) {
		SalariedEmployee salariedEmployee = new SalariedEmployee("ben", LocalDate.of(1990, 10, 5), 12000.0);
		System.out.println(salariedEmployee);
		System.out.println(salariedEmployee.getSalary(10));

		HourlyEmployee hourlyEmployee = new HourlyEmployee("ann", LocalDate.of(1999, 3, 10), 200);
		System.out.println(hourlyEmployee);
		System.out.println(hourlyEmployee.getSalary(3));

		SalsEmployee salsEmployee = new SalsEmployee("candy", LocalDate.of(1996, 7, 7), 100000.0, 0.1);
		System.out.println(salsEmployee);
		System.out.println(salsEmployee.getSalary(7));

		BasedPlusSalesEmployee basedPlusSalesEmployee = new BasedPlusSalesEmployee("dennis", LocalDate.of(1998, 9, 2),
				100000, 0.1, 3000);
		System.out.println(basedPlusSalesEmployee);
		System.out.println(basedPlusSalesEmployee.getSalary(9));
	}
}
